package com.loong.order.common.forehead.param;


import com.loong.common.validator.group.CommonInsert;
import com.loong.common.validator.group.CommonValidate;
import lombok.*;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Description: c端提交订单参数
 * @Author: hzp
 * @Date: 2020-12-31 9:37
 */
@Builder
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class OrderForeheadParam {
    /**
     * 购物车id
     */
    private Long cartId;
    /**
     * 订单基础信息参数
     */
    @NotNull(message = "订单基础信息不能为空",groups = {CommonInsert.class})
    private OrderBaseForeheadParam orderBaseForeheadParam;
    /**
     * 订单详情集合信息
     */
    @NotEmpty(message = "订单详情集合信息不能为空",groups = {CommonInsert.class})
    private List<OrderItemForeheadParam> orderItemList;
    /**
     * 订单配送信息参数
     */
    @NotNull(message = "订单配送信息不能为空",groups = {CommonInsert.class})
    private OrderDeliveryForeheadParam orderDeliveryForeheadParam;

}
